﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ly2
{
    class Program
    {
        static void Main(string[] args)
        {
            Mobile mobile = new Mobile("金士顿");
            mobile.Read();
            mobile.Write();

            Console.WriteLine("-----------------");

            Disk disk = new Disk("惠普");
            disk.Read();
            disk.Write();

            Console.WriteLine("-----------------");

            Computer cm = new Computer();
            cm.Open();
            cm.usb1 = mobile;
            cm.usb2 = disk;
            cm.Read();
            cm.Write();
            cm.Close();


        }
    }
}
